From: Jim Blandy Date: Sat, 10 Apr 1993 07:45:07 +0000 (+0000) Subject: * keyboard.c (echo_dash): Do nothing if echoptr is 0. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96555 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=4bafa97229e4aa48955c00af95dcb85f66cff609;p=emacs.git * keyboard.c (echo_dash): Do nothing if echoptr is 0. --- diff --git a/src/keyboard.c b/src/keyboard.c index 8f4b9b4425f..aa8a5e05467 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -521,6 +521,9 @@ echo_dash () { if (!immediate_echo && echoptr == echobuf) return; + /* Do nothing if not echoing at all. */ + if (echoptr == 0) + return; /* Put a dash at the end of the buffer temporarily, but make it go away when the next character is added. */